package com.fund.datacopy.utils;

import java.util.Collection;
import java.util.Map;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.lang.StringUtils;

public class ConfUtil {
	public static boolean checkParam(Object... obj) {

		for (Object o : obj) {
			if ((o instanceof String)) {
				String str = (String) o;
				if (StringUtils.isBlank(str)) {
					return false;
				}
			} else if ((o instanceof Collection)) {
				Collection list = (Collection) o;
				if (CollectionUtils.isEmpty(list)) {
					return false;
				}
			} else if ((o instanceof Map)) {
				Map map = (Map) o;
				if (MapUtils.isEmpty(map)) {
					return false;
				}
			} else if (o == null) {
				return false;
			}
		}

		return true;
	}
}
